#!/usr/bin/python
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#s.connect(("66.249.89.104", 80))
s.connect(("www.google.com", 80))

#s.send("GET / HTTP/1.1\r\n")
s.send("GET /search?q=f HTTP/1.1\r\n")
#s.send("GET /ncr HTTP/1.1\r\n")
s.send("HOST: www.google.com\r\n")
#s.send("Cookie: rememberme=true; PREF=ID=91765884031296e6:U=4ffc5dae48e27f02:FF=0:LD=en:NW=1:CR=2:TM=1291263957:LM=1298011346:DV=0SJoub_nzRUL:GM=1:IG=3:S=XHsXr4-Co2RITGj_; \r\n")
s.send("Cookie: PREF=ID=805a8344adb7c4ec:FF=0:LD=en:NW=1:CR=2:TM=1300110752:LM=1300110752:S=hQqyUO2cGgHu7FJY\r\n")
s.send("\r\n")

while True:
    print s.recv(1024)
